
    <!DOCTYPE html>
    <html lang="zh-CN">
    <head>
      <meta charset="UTF-8">
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <title>Idea远程调试 - 学习卡片</title>
      <style>
        body { font-family: sans-serif; background-color: #f0f8ff; color: #333; display: flex; flex-direction: column; align-items: center; padding: 50px 20px; }
        .header h1 { font-size: 32px; }
        .grid-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; width: 100%; max-width: 1200px; }
        .card-container { perspective: 1200px; cursor: pointer; height: 250px; }
        .card { width: 100%; height: 100%; position: relative; transform-style: preserve-3d; transition: transform 0.7s; border-radius: 16px; box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
        .card-container.flipped .card { transform: rotateY(180deg); }
        .card-face { position: absolute; width: 100%; height: 100%; backface-visibility: hidden; display: flex; flex-direction: column; box-sizing: border-box; border-radius: 16px; background-color: #fff; padding: 24px; }
        .card-back { background-color: #f0fff4; transform: rotateY(180deg); justify-content: space-between; }
        .card-category { font-size: 14px; color: #0052d9; margin-bottom: 8px; font-weight: 500; }
        .card-question { font-size: 20px; font-weight: 500; flex-grow: 1; display: flex; align-items: center; justify-content: center; text-align: center; }
        .card-answer-wrapper { flex-grow: 1; overflow-y: auto; }
        .card-answer { font-size: 15px; line-height: 1.7; }
        .card-footer { font-size: 13px; color: #8a919f; border-top: 1px solid #f0f0f0; padding-top: 16px; margin-top: 16px; }
        .card-source { font-size: 13px; color: #8a919f; border-top: 1px solid #f0f0f0; padding-top: 12px; margin-top: 12px; }
      </style>
    </head>
    <body>
      <div class="header">
        <h1>Idea远程调试 - 学习卡片</h1>
      </div>
      <div class="grid-container">
        
    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">技术</div>
          <div class="card-question">在服务器上启动一个Java应用并开启远程调试功能，需要使用哪个核心命令行参数？请提供一个完整的示例命令。</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">技术</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">需要使用 `-agentlib:jdwp` 参数来开启远程调试。一个完整的示例命令是：`java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8888 -jar user-crud.jar`。</div>
          </div>
          <div class="card-source">来源: 2、执行一下命令启动服务</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">理论</div>
          <div class="card-question">进行Java远程调试时，应用程序的服务端口和调试端口有什么重要限制？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">理论</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">服务端口是应用程序本身提供服务的端口（例如8080），而调试端口是专门为调试器连接设置的端口（例如8888）。两者不能设置为同一个端口号。</div>
          </div>
          <div class="card-source">来源: 2、执行一下命令启动服务</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">机制</div>
          <div class="card-question">在JDWP参数中，`suspend` 参数的作用是什么？它的默认值是多少？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">机制</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">`suspend` 参数用于决定Java应用启动后是否需要阻塞，直到调试器成功连接。它的默认值为 `y`（阻塞等待）。如果设置为 `n`，则应用会直接启动而不会等待调试器连接。</div>
          </div>
          <div class="card-source">来源: 参数说明</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">特性</div>
          <div class="card-question">JDWP的 `transport` 参数用于指定什么？它有哪些主要的可用值及其区别？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">特性</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">`transport` 参数用于指定被调试应用和调试器之间的通信协议。主要有两个可选值：`dt_socket`，这是主要的方式，采用socket网络连接；`dt_shmem`，采用共享内存方式连接，但仅支持Windows平台。</div>
          </div>
          <div class="card-source">来源: 参数说明</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">特性</div>
          <div class="card-question">JDWP的 `server` 参数有什么作用？当被调试的Java应用需要作为服务端等待调试器连接时，该参数应如何设置？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">特性</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">`server` 参数用于指定当前应用是作为调试服务端（被调试者）还是客户端（调试发起者）。当应用需要作为服务端等待调试器连接时，应将该参数设置为 `y`。</div>
          </div>
          <div class="card-source">来源: 参数说明</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">技术</div>
          <div class="card-question">配置JDWP的 `address` 参数时，除了指定端口号，还需要注意哪两个关键点？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">技术</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">设置 `address` 参数时需要注意两点：1. 此端口一定不能与项目的服务端口重复。2. 此端口必须是服务器上已经开放、未被防火墙阻拦的端口。</div>
          </div>
          <div class="card-source">来源: 参数说明</div>
        </div>
      </div>
    </div>

      </div>
    </body>
    </html>
